From ca64b2bb8026fb4510696736d2d887e21ac2bfa3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Jan 2024 21:15:53 +0000 Subject: Zero out GC children with explicit memory stores --- ...dlang.compiler.testing.snapshots.Snapshotter)].expected | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 8d3e1d22..665acac6 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -21,6 +21,20 @@ Compilation unit elements: body=( (call (local "gcRootStackIndex__0") "shed__runtime__gc_get_root_stack_index" ()) (call (local "structValuePointer__0") "shed__runtime__gc_alloc" ((int-const (byte-size-of (struct ((struct (data-ptr int int32 int32)) (struct (int (struct (int int)))))))) (int32-const (byte-offset-of (struct ((struct (data-ptr int int32 int32)) (struct (int (struct (int int)))))) (1 1))) (int32-const 2))) + ( + memory-store + pointer=(local "structValuePointer__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (int (struct (int int)))))) + offset=(1 1 0) + value=(int-const 0) + ) + ( + memory-store + pointer=(local "structValuePointer__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (int (struct (int int)))))) + offset=(1 1 1) + value=(int-const 0) + ) ( memory-store pointer=(local "structValuePointer__0") -- cgit v1.2.3